package util

import (
	"net/http"
)

func Write(response http.ResponseWriter, data []byte) {
	_, err := response.Write(data)
	if err != nil {
		stackInfo := ReadParentStack()
		log.Errorf("write data to response filed. stack:%s, err:%v", stackInfo, err)
	}
}
